package ch.unisi.inf.java.project.riskbami.model;

import javax.swing.*;
import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;

import ch.unisi.inf.java.project.riskbami.view.*;

/**
 * This class handles the new game command from the upper file menu.
 * 
 * @author minellir@lu.unisi.ch
 * @author babazadm@lu.unisi.ch
 */
public final class NewGameCommand extends AbstractAction {
    
    /**
     * Constructor for the NewGameCommand class.
     */
    public NewGameCommand() {
        // menu item text
        putValue(NAME, "New Game");
        // tooltip text
        putValue(SHORT_DESCRIPTION, "Start a new game");
    }
    
    /**
     * Handles the action performed by the event.
     */
    public void actionPerformed(final ActionEvent ev) {
       new PreRiskFrame();
    }
    
}
